﻿
using AutoMapper;
using B.MES.FLH.WarehouseManagement.Application.Dtos.Area;
using B.MES.FLH.WarehouseManagement.Application.Dtos.Definition;
using B.MES.FLH.WarehouseManagement.Application.Dtos.Externallabel;
using B.MES.FLH.WarehouseManagement.Application.Dtos.IOWarehouserecord;
using B.MES.FLH.WarehouseManagement.Application.Dtos.Location;
using B.MES.FLH.WarehouseManagement.Application.Dtos.Made_UpArticles;
using B.MES.FLH.WarehouseManagement.Domain.Entity;

public  class MappingFile : Profile
{
    public MappingFile()
    {
        CreateMap<CreateWarehouseDefinitionModelInput, WAREHOUSEDEFINITIONMODEL>();
        CreateMap<UpdateWarehouseDefinitionModelInput, WAREHOUSEDEFINITIONMODEL>();
        CreateMap<WAREHOUSEDEFINITIONMODEL, WarehouseDefinitionModelOutput>();
        CreateMap<WAREHOUSEDEFINITIONMODEL, WarehouseDefinitionDescOutput>();

        CreateMap<CreateAreaModelInput, AREAMODEL>();
        CreateMap<UpdateAreaModelInput, AREAMODEL>();
        CreateMap<AREAMODEL, AreaModelOutput>();
        CreateMap<AREAMODEL, AreaDescOutput>();

        CreateMap<CreateLocationModelInput, LOCATION>();
        CreateMap<UpdateLocationModelInput, LOCATION>();
        CreateMap<LOCATION, LocationModelOutput>();
        CreateMap<LOCATION, LocationDescOutput>();

        CreateMap<CreateEXTERNALLABELModelInput, EXTERNALLABELMODEL>();
        CreateMap<UpdateEXTERNALLABELModelInput, EXTERNALLABELMODEL>();
        CreateMap<EXTERNALLABELMODEL, EXTERNALLABELModelOutput>();
        CreateMap<EXTERNALLABELMODEL, EXTERNALLABELDescOutput>();

        CreateMap<CreateIOWAREHOUSERECORDModelInput, IOWAREHOUSERECORDMODEL>();
        CreateMap<UpdateIOWAREHOUSERECORDModelInput, IOWAREHOUSERECORDMODEL>();
        CreateMap<IOWAREHOUSERECORDMODEL, IOWAREHOUSERECORDModelOutput>();
        CreateMap<IOWAREHOUSERECORDMODEL, IOWAREHOUSERECORDDescOutput>();

        CreateMap<CreateMade_UpArticlesModelInput, Made_UpArticlesModel>();
        CreateMap<Made_UpArticlesModel, Made_UpArticlesModelOutput>();
    }
}